<?php
defined('IN_MAIN') or exit('Invalid Access!');

function nhtmlentities($str){
 global $vars;
 return htmlentities($str, ENT_COMPAT, ($vars["charset"]? $vars["charset"] : null));
}
?>